<template>
  <div id="data-view">
    <!-- <dv-full-screen-container> -->
    <div class="main-header">
      <div class="mh-left" />
      <div class="mh-middle">智慧图书管理系统</div>
      <div class="mh-right">
        <dv-border-box-2
          style="width: 120px; height: 50px; line-height: 50px; text-align:center;margin-left:200px;"
        >
          <i class="el-icon-setting table-operation" style="color: #2db7f5;" @click="view()" />
        </dv-border-box-2>
      </div>
    </div>

    <dv-border-box-1 class="main-container">
      <dv-border-box-3 :color="['#50616d', '#50616d']" class="left-chart-container">

        <left-chart-1 />
        <Left-Chart-2 />
        <Left-Chart-3 />

      </dv-border-box-3>

      <div class="right-main-container">
        <div class="rmc-top-container">
          <dv-border-box-10 :color="['#50616d', '#50616d']" class="rmctc-left-container">

            <center-cmp />

          </dv-border-box-10>

          <div class="rmctc-right-container">
            <dv-border-box-8 :color="['#50616d', '#50616d']" class="rmctc-chart-1">

              <Right-Chart-1 />

            </dv-border-box-8>

            <dv-border-box-9 :color="['#50616d', '#50616d']" class="rmctc-chart-2" :reverse="true">

              <Right-Chart-2 />

            </dv-border-box-9>
          </div>
        </div>

        <dv-border-box-11 :color="['#50616d', '#50616d']" class="rmc-bottom-container">

          <Bottom-Charts />

        </dv-border-box-11>
      </div>
    </dv-border-box-1>
    <!-- </dv-full-screen-container> -->
  </div>
</template>

<script>
import CenterCmp from './centerCmp';

import LeftChart1 from './LeftChart1';
import LeftChart2 from './LeftChart2';
import LeftChart3 from './LeftChart3';

import RightChart1 from './RightChart1';
import RightChart2 from './RightChart2';

import BottomCharts from './BottomCharts';

export default {
  name: 'DataView',
  components: {
    CenterCmp,
    LeftChart1,
    LeftChart2,
    LeftChart3,
    RightChart1,
    RightChart2,
    BottomCharts
  },
  data() {
    return {};
  },
  methods: {
    view() {
      var url = 'http://' + window.location.host + '/#/datascreen/view';
      console.log(url);
      window.open(url);
      // window.open("http://www.runoob.com");
    }
  }
};
</script>
<style lang="less">
#data-view {
  width: 100%;
  height: 100%;
  //   background-color: #fffbf0;
  color: #50616d;
  // #dv-full-screen-container {
  background-image: url("../../assets/myjpg/bj.jpg");
  background-size: 100% 100%;
  box-shadow: 0 0 3px #50616d;
  display: flex;
  flex-direction: column;
  // }
  .main-header {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    .mh-left {
      font-size: 20px;
      color: #50616d;
      a:visited {
        color: #50616d;
      }
    }
    .mh-middle {
      font-size: 30px;
    }
    .mh-left,
    .mh-right {
      width: 450px;
    }
  }
  .main-container {
    min-height: 90%;
    margin: 0;
    height: calc(~"100% - 80px");
    .border-box-content {
      padding: 20px;
      box-sizing: border-box;
      display: flex;
    }
  }
  .left-chart-container {
    width: 22%;
    padding: 10px;
    box-sizing: border-box;
    .border-box-content {
      flex-direction: column;
    }
  }
  .right-main-container {
    width: 78%;
    padding-left: 5px;
    box-sizing: border-box;
  }
  .rmc-top-container {
    height: 65%;
    display: flex;
  }
  .rmctc-left-container {
    width: 65%;
  }
  .rmctc-right-container {
    width: 35%;
  }
  .rmc-bottom-container {
    height: 35%;
  }
  .rmctc-chart-1,
  .rmctc-chart-2 {
    height: 50%;
  }
}
</style>
